PaymentPlugins\WooCommerce\PPCP\Payments\PaymentGateways A

Total Complexity 59
Dependencies 18
Dependents 13
Total lines 289
Lines of code 185
Logical lines of code 99
Comment lines 53
Methods 24
Properties 6

Methods 24

Method Rating Maintainability Complexity Lines of code
get_available_payment_gateways()
A
54 10 21
enqueue_payment_scripts()
A
50 9 29
add_minicart_scripts()
S
64 7 10
enqueue_scripts()
S
64 4 9
add_script_data()
S
59 3 13
add_admin_script_data()
S
68 3 7
add_payment_method_data_to_fragments()
S
65 3 10
__construct()
S
55 1 18
initialize_gateways()
S
71 2 6
get_minicart_payment_gateways()
S
72 2 6
add_cart_refresh_data()
S
72 2 5
set_page_context()
S
81 1 3
register_payment_methods()
S
73 1 5
has_gateway()
S
80 1 3
get_gateway()
S
80 1 3
get_cart_payment_gateways()
S
81 1 3
get_product_payment_gateways()
S
80 1 3
get_express_payment_gateways()
S
81 1 3
filter_by_available()
S
70 1 6
add_admin_script_dependencies()
S
79 1 3
get_general_asset_data()
S
63 1 10
get_payment_method_registry()
S
82 1 3
get_api_settings()
S
82 1 3
get_cart_refresh_data()
S
79 1 3